package com.xiao.mall.client.message.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

@Data
@ApiModel(value = "NotificationDto", description = "消息Dto")
public class NotificationDto implements Serializable {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("消息标题")
    private String title;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型")
    private String type;

    @ApiModelProperty("消息主题")
    private String topic;

    @ApiModelProperty("目标ID")
    private String target;

    @ApiModelProperty("目标类型")
    private String targetType;

    @ApiModelProperty("提醒信息的动作类型")
    private String action;

    @ApiModelProperty("发送人")
    private String sender;

    @ApiModelProperty("手机号")
    private String mobile; //冗余

    @ApiModelProperty("已读")
    private boolean hasRead;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("消息内容id")
    private Long notificationId;

    @ApiModelProperty("微信消息模版Id")
    private String templateId;

    @ApiModelProperty("微信跳转url")
    private String wechatPageUrl;

    @ApiModelProperty("微信消息模版参数")
    private Map<String, Object> wechatTemplateArgs;
}
